package com.xgq.drink.mapper;

import com.xgq.drink.entity.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 * 品牌表 Mapper 接口
 * </p>
 *
 * @author xgq
 * @since 2025-03-11
 */
public interface BrandMapper extends BaseMapper<Brand> {
    @Update("UPDATE brand SET is_deleted = #{status} WHERE brand_id = #{brandId}")
    boolean updateDisplayStatus(@Param("brandId") Long brandId, @Param("status") Integer status);
    @Select("SELECT * FROM brand")
    List<Brand> selectBrandAll();
}
